package com.chiaching.framwork.domian.constant;

import lombok.Data;

import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * @author jiajing.he
 * @date 2021/4/11 11:53
 */
public enum RocketTopic {


    SUPER_MALL_COMMON("super_mall_common","super-Mall公共topic消费"
            , new HashSet<>(Arrays.asList(RocketTag.ALL,RocketTag.DB_CHANGE))),


    SUPER_MALL_CANAL("super-mall-canal","super-mall-canal数据库监听"
            , new HashSet<>(Arrays.asList(RocketTag.ALL)));

    String name;

    String desc;

    Set<String> tags;

    RocketTopic(String name, String desc, Set<String> tags) {
        this.name = name;
        this.desc = desc;
        this.tags = tags;
    }

    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }

    public Set<String> getTags() {
        return tags;
    }
}
